﻿@model EasyBlog.Models.InfoBlog

@{
    ViewData["Title"] = "Create";
}

<h1>新增</h1>
<h4>博客信息</h4>
<hr />

<div class="row">
    <form asp-action="Create">
        <div asp-validation-summary="ModelOnly" class="text-danger"></div>

        <div class="form-group">
            <label asp-for="Title" class="control-label"></label>
            <input asp-for="Title" class="form-control" />
            <span asp-validation-for="Title" class="text-danger"></span>
        </div>
        <div class="form-group">
            <label asp-for="Content" class="control-label"></label>
            <textarea asp-for="Content" class="form-control" rows="10" cols="10"></textarea>
            <span asp-validation-for="Content" class="text-danger"></span>
        </div>
        <div class="form-group">
            <input type="submit" value="新增" class="btn btn-primary" />
        </div>
    </form>
</div>

<div>
    <a asp-action="Index">返回列表</a>
</div>

